<template>
  <div>
    <P>登录用户:<i>{{name}}</i></P>welcome
  </div>
</template>

<script>
export default {
  data() {
    return {
      name:''
    }
  },
  created(){
    this.name = window.sessionStorage.getItem('username')
  }
};
</script>

<style lang="less">
p{
  i{
    font-style: normal;
  }
}
</style>
